package com.example.hxds.workflow.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
 * @Author XUYANG
 * @Date 2024-04-10 14:57
 */
@Data
public class SendPrivateMessageForm {
    @NotBlank
    private String senderIdentity;

    @NotNull
    private String senderName;

    @Min(value = 0L)
    private Long senderId;

    @NotBlank
    private String receiverIdentity;
    private String senderPhoto = "http://static-1258386385.cos.ap-beijing.myqcloud.com/img/System.jpg";

    @Min(value = 1L)
    private Integer ttl;

    @NotNull
    @Min(value = 1L)
    private Long receiverId;

    @NotNull
    private String msg;
}
